import Http from "./http";

var API = {};

API.sendCode = (params)=>{
    return Http.post("/scene-portal/xcx/sendCode",params)
}


API.getEnvList = ()=>{
    return Http.get("/api/admin/env/list");
}
API.getEnvInfo = (params)=>{
    return Http.get("/api/admin/env/info",params);
}

API.addEnv = (params)=>{
    return Http.post("/api/admin/env/add",params);
}
API.updateEnv = (params)=>{
    return Http.post("/api/admin/env/update",params);
}
API.removeEnv = (params)=>{
    return Http.post("/api/admin/env/remove",params);
}


export default API;